package tiandang.core.model;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public class Promo {
  private Integer id;

  @NotNull(message = "公告不能为空")
  private String notice;

  // 0隐藏  1显示
  @NotNull(message = "前端是否显示不能为空")
  private Byte isShow;

  private Integer categoryNumber;

  private Integer managerNumber;

  private BigDecimal incomeAmount;

  @NotNull(message = "团购开始时间为空")
  @Min(value = 0, message = "团购开始时间错误")
  private Long startTimestamp;

  @NotNull(message = "团购结束时间为空")
  @Min(value = 0, message = "团购结束时间错误")
  private Long endTimestamp;

  //开团状态 0表示还未开始 1进行中 2已结束
  private Integer status;

  private LocalDateTime createtime;

  private Byte pushStatus;

  private List<PromoManager> promoManagerList;

  private List<PromoProduct> promoProductList;

  public List<PromoProduct> getPromoProductList() {
    return promoProductList;
  }

  public void setPromoProductList(List<PromoProduct> promoProductList) {
    this.promoProductList = promoProductList;
  }

  public Byte getPushStatus() {
    return pushStatus;
  }

  public void setPushStatus(Byte pushStatus) {
    this.pushStatus = pushStatus;
  }

  public LocalDateTime getCreatetime() {
    return createtime;
  }

  public void setCreatetime(LocalDateTime createtime) {
    this.createtime = createtime;
  }

  public List<PromoManager> getPromoManagerList() {
    return promoManagerList;
  }

  public void setPromoManagerList(List<PromoManager> promoManagerList) {
    this.promoManagerList = promoManagerList;
  }

  public Long getStartTimestamp() {
    return startTimestamp;
  }

  public void setStartTimestamp(Long startTimestamp) {
    this.startTimestamp = startTimestamp;
  }

  public Long getEndTimestamp() {
    return endTimestamp;
  }

  public void setEndTimestamp(Long endTimestamp) {
    this.endTimestamp = endTimestamp;
  }

  public String getNotice() {
    return notice;
  }

  public void setNotice(String notice) {
    this.notice = notice;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public Byte getIsShow() {
    return isShow;
  }

  public void setIsShow(Byte isShow) {
    this.isShow = isShow;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Integer getCategoryNumber() {
    return categoryNumber;
  }

  public void setCategoryNumber(Integer categoryNumber) {
    this.categoryNumber = categoryNumber;
  }

  public Integer getManagerNumber() {
    return managerNumber;
  }

  public void setManagerNumber(Integer managerNumber) {
    this.managerNumber = managerNumber;
  }

  public BigDecimal getIncomeAmount() {
    return incomeAmount;
  }

  public void setIncomeAmount(BigDecimal incomeAmount) {
    this.incomeAmount = incomeAmount;
  }


}